<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ArticleGrid.ascx.cs" Inherits="gdlmo.DNN.Modules.ArticleGrid.ArticleGrid" %>
<%@ import Namespace="DotNetNuke.Entities.Modules" %>
<%@ import Namespace="DotNetNuke.Common.Utilities" %>
<%@ import Namespace="DotNetNuke.Common" %>
<%@ import Namespace="gdlmo.DNN.Modules.ArticleGrid" %>
<asp:datagrid id="dgArticles" ToolTip="hello" Width="100%" AutoGenerateColumns="False" CssClass="Normal"
	runat="server" GridLines="None">
	<Columns>
		<asp:TemplateColumn>
			<ItemTemplate>
				<asp:HyperLink NavigateUrl='<%# EditUrl("ArticleId",DataBinder.Eval(Container, "DataItem.ArticleId").ToString()) %>' Visible="<%# IsEditable %>" runat="server" ID="Hyperlink2">
					<asp:Image ID=Hyperlink1Image Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit"/>
				</asp:HyperLink>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn HeaderText="标题">
			<ItemTemplate>
				<LI>
					<asp:HyperLink runat="server" Text='<%# HtmlUtils.Shorten(DataBinder.Eval(Container.DataItem, "DeptName").ToString()+ "：" +DataBinder.Eval(Container.DataItem, "Title").ToString(),GetMaxChars(),"...") %>' NavigateUrl='<%# EditUrl("ArticleID",DataBinder.Eval(Container.DataItem, "ArticleID").ToString(),"AccesoryList") %>' Target="_blank" ID="Hyperlink1" Title='<%# "发布人：" + DataBinder.Eval(Container.DataItem, "Author").ToString() + "  标题：" + DataBinder.Eval(Container.DataItem, "Title").ToString()%>'>
					</asp:HyperLink>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:BoundColumn DataField="CreatedDate" HeaderText="日期" DataFormatString="{0:MM-dd}">
			<HeaderStyle Width="20%"></HeaderStyle>
		</asp:BoundColumn>
	</Columns>
</asp:datagrid><asp:label id="plMessage" CssClass="NormalRed" runat="server" resourcekey="plMessage" Visible="False">Label</asp:label>
<TABLE id="tbMore" width="100%" runat="server">
	<TR>
		<TD align="right"><asp:hyperlink id="lnkMore" CssClass="Normal" resourcekey="lnkMore" Runat="server">more...</asp:hyperlink></TD>
	</TR>
</TABLE>
<TABLE id="tbPage" width="100%" runat="server">
	<TR>
		<TD align="right" height="25"><asp:linkbutton id="cmdFirst" ToolTip="hello2" CssClass="CommandButton" runat="server" resourcekey="cmdFirst"
				CommandArgument="First">First</asp:linkbutton>&nbsp;
			<asp:linkbutton id="cmdPrev" CssClass="CommandButton" runat="server" resourcekey="cmdPrev" CommandArgument="Prev">Prev</asp:linkbutton>&nbsp;
			<asp:dropdownlist id="cboPages" CssClass="CommandButton" runat="server" AutoPostBack="True"></asp:dropdownlist>&nbsp;
			<asp:linkbutton id="cmdNext" CssClass="CommandButton" runat="server" resourcekey="cmdNext" CommandArgument="Next">Next</asp:linkbutton>&nbsp;
			<asp:linkbutton id="cmdLast" CssClass="CommandButton" runat="server" resourcekey="cmdLast" CommandArgument="Last">Last</asp:linkbutton>&nbsp;
		</TD>
	</TR>
</TABLE>
